//
//  YZNetWorkRequestManager.h
//  VET
//
//  Created by YZ on 2018/7/17.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YZNetworkConfig.h"

typedef void (^YZNetworkCompletionSuccessBlock)(id obj);

typedef void (^YZNetworkCompletionFailBlock)(NSError *error);

@interface YZNetWorkRequestManager : NSObject

SingletonH

/**
 多图片上传
 */
- (void)reqestUploadImgsWithApi:(NSString*)api params:(NSDictionary *)params imgs:(NSArray<UIImage *> *)images name:(NSString *)name withHeaders:(NSDictionary *)headers success:(YZNetworkCompletionSuccessBlock)successBlock fail:(YZNetworkCompletionFailBlock)failBlock;

/**
 本地视频上传
 */
- (void)reqestUploadVideoWithApi:(NSString*)api params:(NSDictionary *)params videoPath:(NSString *)videoPath name:(NSString *)name withHeaders:(NSDictionary *)headers success:(YZNetworkCompletionSuccessBlock)successBlock fail:(YZNetworkCompletionFailBlock)failBlock;


/**
 视频上传
 */
- (void)reqestUploadVideoWithApi:(NSString*)api params:(NSDictionary *)params videoUrl:(NSURL *)videoUrl name:(NSString *)name withHeaders:(NSDictionary *)headers success:(YZNetworkCompletionSuccessBlock)successBlock fail:(YZNetworkCompletionFailBlock)failBlock;


/**
 post请求
 */
- (void)requestPostWithApi:(NSString*)api params:(NSDictionary *)params withHeaders:(NSDictionary *)headers success:(YZNetworkCompletionSuccessBlock)successBlock fail:(YZNetworkCompletionFailBlock)failBlock;

/**
get请求
 */
- (void)requestGetWithApi:(NSString*)api params:(NSDictionary *)params withHeaders:(NSDictionary *)headers success:(YZNetworkCompletionSuccessBlock)successBlock fail:(YZNetworkCompletionFailBlock)failBlock;
@end
